package br.com.maven.plugins.buildinfo;

import org.apache.maven.model.Profile;

public class ProfileWrapper {

	private Profile content; 
	
	public ProfileWrapper(Profile content) {
		this.content = content;
	}
	
	public Profile getContent() {
		return content;
	}
	
	@Override
	public int hashCode() {
		return content.getId().hashCode();
	}
	
	@Override
	public boolean equals(Object obj) {
		if(obj == null){
			return false;
		}
		if(obj.getClass() != getClass()) {
			return false;
		}
		ProfileWrapper other = (ProfileWrapper) obj;
		
		return content.getId().equals(other.getContent().getId());
	}
	
}
